from flask import Blueprint, render_template, request
import logging
index = Blueprint("index",__name__)

@index.route("/")
def home():
    # 获取当前第几页

    page = request.args.get("page")
    article_type = request.args.get("article_type")
    logging.debug("page:"+page)
    logging.debug("article_type:" + article_type)
    if page is None:
        page=1
    if article_type is None:
        article_type = "recommend"
        # 到数据库中查询文章数据，然后返回给前端页面
        
    return render_template("index.html")